package name.panitz.mobile;

import javax.microedition.midlet.MIDlet; 
import javax.microedition.lcdui.*; 
 
public class HelloMobileWorld extends MIDlet{

  public void startApp() {
    final Display display = Display.getDisplay(this);     
    final Form mainForm = new Form("TinyMIDlet");

    mainForm.append("Welcome to the world of MIDlets!");

    mainForm.setCommandListener(new CommandListener(){
      public void commandAction(Command c, Displayable s) { 
        if (c.getCommandType() == Command.EXIT) 
          notifyDestroyed(); 
       } 
    });

    display.setCurrent(mainForm);

    mainForm.addCommand(new Command("Exit", Command.EXIT, 0)); 
  } 
  public void destroyApp(boolean b) {}
  public void pauseApp() {}
} 

